package com.xuwang.pojo;

import java.sql.Timestamp;
import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 生产表(Production)实体类
 *
 * @author abaaba
 * @since 2021-09-17 09:43:38
 * @version 1.0
 */
@ApiModel(value = "Production",description = "生产表")
public class Production implements Serializable {
    private static final long serialVersionUID = -71988805108338799L;
    /**
    * 生产表id
    */
	@ApiModelProperty(name = "id",notes = "生产表id",dataType = "Integer",required = true)
    private Integer id;
    /**
    * 生产类型（1原料，2添加剂，3食品）
    */
	@ApiModelProperty(name = "productionType",notes = "生产类型（1原料，2添加剂，3食品）",dataType = "Integer",required = true)
    private Integer productionType;
    /**
    * 具体id
    */
	@ApiModelProperty(name = "matchId",notes = "具体id",dataType = "Integer",required = true)
    private Integer matchId;
    /**
    * 生产商id（菜品非空、其他可空）
    */
	@ApiModelProperty(name = "producersId",notes = "生产商id（菜品非空、其他可空）",dataType = "Integer",required = true)
    private Integer producersId;
    /**
    * 生产批号
    */
	@ApiModelProperty(name = "batchNo",notes = "生产批号",dataType = "String",required = true)
    private String batchNo;
    /**
    * 生产数量
    */
	@ApiModelProperty(name = "productionNumber",notes = "生产数量",dataType = "Double",required = true)
    private Double productionNumber;
    /**
    * 规格
    */
	@ApiModelProperty(name = "specification",notes = "规格",dataType = "String",required = true)
    private String specification;
    /**
    * 生产日期
    */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	@ApiModelProperty(name = "productionTime",notes = "生产日期",dataType = "Timestamp",required = true)
    private Timestamp productionTime;

    /**
     * 是否删除
     */
    @ApiModelProperty(name = "isDelete",notes = "是否删除",dataType = "Integer",required = true)
    private Integer isDelete;

    /**
     * 生产物名称
     */
    @ApiModelProperty(name = "matchName",notes = "生产物名称",dataType = "String",required = true)
    private String matchName;

    /**
     * 具体类型原料
     */
    @ApiModelProperty(name = "additive",notes = "添加剂对象",dataType = "Additive",required = true)
    private Additive additive;
    /**
     * 具体类型添加剂
     */
    @ApiModelProperty(name = "food",notes = "菜品对象",dataType = "Food",required = true)
    private Food food;
    @ApiModelProperty(name = "warranty",notes = "保质期",dataType = "Integer",required = true)
    private Integer warranty;

    /**
     * 具体类型菜品
     */
    @ApiModelProperty(name = "rawMaterial",notes = "原料对象",dataType = "RawMaterial",required = true)
    private RawMaterial rawMaterial;

    /**
     * 生产公司
     */
    @ApiModelProperty(name = "companyInfo",notes = "生产公司对象",dataType = "CompanyInfo",required = true)
    private CompanyInfo companyInfo;

    public Integer getWarranty() {
        return warranty;
    }

    public void setWarranty(Integer warranty) {
        this.warranty = warranty;
    }

    public String getMatchName() {
        return matchName;
    }

    public void setMatchName(String matchName) {
        this.matchName = matchName;
    }

    public Additive getAdditive() {
        return additive;
    }

    public void setAdditive(Additive additive) {
        this.additive = additive;
    }

    public Food getFood() {
        return food;
    }

    public void setFood(Food food) {
        this.food = food;
    }

    public RawMaterial getRawMaterial() {
        return rawMaterial;
    }

    public void setRawMaterial(RawMaterial rawMaterial) {
        this.rawMaterial = rawMaterial;
    }

    public CompanyInfo getCompanyInfo() {
        return companyInfo;
    }

    public void setCompanyInfo(CompanyInfo companyInfo) {
        this.companyInfo = companyInfo;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
        
    public Integer getProductionType() {
        return productionType;
    }

    public void setProductionType(Integer productionType) {
        this.productionType = productionType;
    }
        
    public Integer getMatchId() {
        return matchId;
    }

    public void setMatchId(Integer matchId) {
        this.matchId = matchId;
    }
        
    public Integer getProducersId() {
        return producersId;
    }

    public void setProducersId(Integer producersId) {
        this.producersId = producersId;
    }
        
    public String getBatchNo() {
        return batchNo;
    }

    public void setBatchNo(String batchNo) {
        this.batchNo = batchNo;
    }
        
    public Double getProductionNumber() {
        return productionNumber;
    }

    public void setProductionNumber(Double productionNumber) {
        this.productionNumber = productionNumber;
    }
        
    public String getSpecification() {
        return specification;
    }

    public void setSpecification(String specification) {
        this.specification = specification;
    }

    public Timestamp getProductionTime() {
        return productionTime;
    }

    public void setProductionTime(Timestamp productionTime) {
        this.productionTime = productionTime;
    }
}